﻿using System.Data;

namespace Smatime.Web.Models
{
    public class CompanyUserInformation : BaseEntity
    {
        public long CompanyUserId { get; set; }
        public long CompanyId { get; set; }
        public string Email { get; set; }
        public string PassWord { get; set; }
        public string Name { get; set; }

        public override BaseEntity FromDataRow(DataRow row)
        {
            Id = (long) row["Id"];
            CompanyUserId = (long) row["CompanyUserId"];
            CompanyId = (long) row["CompanyId"];
            Email = row["Email"].ToString();
            PassWord = row["PassWord"].ToString();
            Name = row["Name"].ToString();
            return base.FromDataRow(row);
        }

        public override void ToDataRow(DataRow row)
        {
            base.ToDataRow(row);
        }
    }
}